﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MyWebApp.Common.Entity
{
    public class DtData<T> where T : new()
    {
        /// <summary>
        /// 总数据条数
        /// </summary>
        public int recordsTotal { get; set; }
        /// <summary>
        /// 显示数据总条数
        /// </summary>
        public int recordsFiltered { get; set; }
        /// <summary>
        /// 可选，以逗号分隔的列名
        /// </summary>
        public string sColumns { get; set; }
        /// <summary>
        /// 数据
        /// </summary>
        public IEnumerable<T> data { get; set; }
    }

    public class DtSearchParam
    {
        
        /// <summary>
        /// 显示的起始索引号(从0开始)
        /// </summary>
        public int start { get; set; }
        /// <summary>
        /// 显示的行数
        /// </summary>
        public int length { get; set; }
    }
}